package o;

import android.view.View;
import com.huawei.support.widget.HwProgressBar;
import java.lang.ref.WeakReference;

public class fmd extends SkinAttr {

    static final class c extends fkz<SkinAttr, Integer> {
        private WeakReference<HwProgressBar> ˎ;

        public /* synthetic */ void ॱ(Object obj) {
            ˏ((Integer) obj);
        }

        private c(HwProgressBar hwProgressBar) {
            this.ˎ = new WeakReference(hwProgressBar);
        }

        public void ˏ(Integer num) {
            HwProgressBar hwProgressBar = (HwProgressBar) this.ˎ.get();
            if (hwProgressBar != null) {
                fla.ˋ(hwProgressBar, num.intValue());
            }
        }
    }

    public fmd() {
        this.ˎ = 0;
    }

    public void ˎ(View view, boolean z) {
        if (view instanceof HwProgressBar) {
            HwProgressBar hwProgressBar = (HwProgressBar) view;
            if ("color".equals(this.attrValueTypeName)) {
                this.ʽ = "color";
                fks.ˎ(view.getContext(), this, new c(hwProgressBar)).ॱ(z);
            }
        }
    }
}
